<?

class Blade {

	private $tokens = [
		'forelse',
		'empty',
		'endforelse',
		'include',
		'layout',
		'section',
		'stop',
		'yield',
	];

	public function compile($tpl) {

		foreach ($this->$tokens as $token) {
			$token_func = 'token_' . $token;
			$tpl = $this->$token_func($tpl);
		}

	}

	private function token_forelse($tpl) {

	}

	private function token_empty($tpl) {

	}

	private function token_endforelse($tpl) {

	}

	private function token_include($tpl) {

	}

	private function token_section($tpl) {

	}

	private function token_stop($tpl) {

	}

	private function token_yield($tpl) {

	}

}

?>